handle base path when served from karma