Change slashes for linux handling, fix not being able to find db sometimes.