Fix bug cannot get `env` from machine when init project.