Bug fix for aliasDirectory on empty directories