Merge pull request #366 from fredrikeldh/master

Bugfix for #365.
OSX installer: Added "rules" directory.