Fix regexp for matching for relative files

The regexp was looking for ./ and ../ but not /.
Merge pull request #3 from kastiglione/path-handling-fix

Fix regexp for matching for relative files