run-tests can now skip certain tests when run under Travis CI

See the `skip_travis_tests` variable. Fixes #495
(also tidied up usage of os.path.basename() function)
Merge pull request #499 from lurch/skip-travis-tests

run-tests can now skip certain tests when run under Travis CI