Fix regexes that determine if file updates are required