Fix regexp for matching for relative files

The regexp was looking for ./ and ../ but not /.