[#479] Display correct error when running commands outside a project dir.