correctly load certain things for non-interactive shells