Fix up permissions on the directory creation