adding some escapes to the bash resource's code attribute