Synchronize directory existence & metadata (fixes #11)