Fix a bug where SetFilePermissions was calling MakeDirectory.

This appears to have been a copy / paste error.