Fixed regex to work with quited filenames.