Functions that handle the logic behind replacing the version in related files.
@spec update_managed_file( {String.t(), (String.t() -> String.t()), (String.t() -> String.t())}, String.t(), String.t(), keyword() ) :: String.t() | {:error, :bad_replace}