Extracted various options to environment.sh