* Return an error exit code if spack cd does not succeed. * Reducing amount of return statements in spack cd exit code.