Fixed script and added PHP versions to .travis.yml