Maybe better to search for .phar at the end of the string. Will do this.