Loading rules from files and directories