Adjust method of checking environment to include the right wp-config file