Handle deploy to subdirectory

Monkey patch to allow for app deployed in directory