Fix upload artifact script and output phantomjs version when building on travis.