More tests and debugging for loaders
allowing $dirname to be an array
applying array_map instead of single-line foreach
completed tests for loading from alternate locations