correctly create directories with spaces