Add support for base url both on Github and localhost