Read env variable and fallback to PWD.