Fixes #136: make sure all parent directories are dealt with while emulating directories.
Merge branch 'master' of github.com:thephpleague/flysystem