```coffee
filename = path.relative baseDir, filename if filename[..0] is '/'
```

Seems a bit more coffee-ish. Just a minor nitpick though.