Escape path and filename for php regular expressions. This way derivatives whose filenames have a -[ in it will be found.