I tried to remember current working directory as `PWD=$(pwd)`. I was not aware that it won't work. I would be nice to have a warning