fix install bug
replacing {code} blocks in path string