checkEnv will not attempt to set default domain if it is set to custom domain

Currently checkEnv will always default domain to / on local no matter the domain you set it to.