Added helper function readEnvPath