Support custom extensions in require_tree