change directory first before executing sourcing of envs