Patterns loading - add function pat:loadfile.