Use some ideas from Symfony FileSystem tests - all tests pass locally but not on travis