Get current working directory from "pwd" command instead the CWD environment variable.