Add environment name into temp directory for Apartment SQL files; check SQL file to be run exists.