Fix incorrect permissions on directory creation

This would cause an exception when attemping to save modpack images
Merge pull request #199 from Pyker/patch-5

Fix incorrect permissions on directory creation