Fix incorrect permissions on directory creation

This would cause an exception when attemping to save modpack images