Fix h2 database relative url error in linux + simplify code