Using environment PWD instead of getcwd to avoid symlink resolution