Fixed adapt_controllers.py to allow plugging app on deep paths