Change Loader to work out if it's being run from CLI rather than getting
the user to set it