Ensute getBasePath is used when possible
Close #372 - Separate notion of base path and application path