Fixes masks in regex of sed replace in graph recipe