escape the source command in after_use_maglev hook