Added more prereqs to travis ci and fixed some issues in the environment script