Added code to support application running in a sub dir ex: 'www.donbriggs.com/quore'