If you are just checking for the presence of one string inside another, you should just use the strpos() function. eg:
if(strpos('convert', $this->library_path) !== false) {
// code here
}
Update: Misread you want to check for it at the END of a string, this is still possible without Regex by using substr():
if(substr($this->library_path, -7) == 'convert' {
//code here
}
Where 7
is the length of convert, you could use a strlen and subtract it from 0 to get this number dynamically.
This won't start any regex so is much more efficient.