Utility to easily replace patterns in files