shorten the path by replacing the path of the project folder with '.'

e.g. /Users/bob/src/myproject/somedir/foo.txt with be ./somedir/foo.txt