Fix some path bugs, move main paths to paths.conf