Fix a bug which was creating a empty directory on /