Allow rename of directories

Fix issue #22