Rewrote some filesystem/basepath stuff. Fixes resolving relative paths on Linux. Adjusted lazy initialisation of Logger class