Bug with resolve

Added quotes around `pwd -P` to handle filenames with spaces.