Reconcile GNU and BSD sed regexes
Follow bash variable naming conventions
Add option to search parent directories for modules