prevent self-matching of pattern in docker wrapper script