Fix typos and build a proper path as a string