change working directory based on environment