Updated frontcontroller so it can be run from the module directory