remove Unix.catpath and call catdir instead, same behavior in less lines