fix sig-generation with a ~ in the path (/~user/...)