Fixed the router scanner to load files in the root folder and simplified.