See the `skip_travis_tests` variable. Fixes #495 (also tidied up usage of os.path.basename() function)