Add '.directory' to .gitignore
Fix bug magickcore file loading freeze

This seemed to happen if the 'file' variable was NULL.  For some reason,
magickcore would just totally freeze.