Fixed preg_replace errors

Caused by using / as a delimiter which appears in Linux path names