Some fixes to paths so it'll still work when this is globally installed