First not very nice version of the directory creation