Utility to make a pacth file