Fixed a minor issue with the regex used to search for when swapping out references to encrypted scripts.