Extracted Rakefile regexes into helper functions