Fixes for user rules directory issues
Merge pull request #320 from jsight/userrules_dir_fix

Fixes for user rules directory issues