resolves #359 fix warning in gh_pages deployer when running from Travis

This is a rework of pull request #340 take takes a slightly different approach and updates all related tests.