Fix minor bug in path concatentation