modules: Added support for modules in the current directory.

The changes in this commit also exclude the registering of any files in
the modules directories that start with an underscore "_".