added the ability to override the base path - without this there are issues with azure emulator as varied ports are given (81 and 82 in my case)