fix for systems that don't have PWD environment variable defined