Fix strip leading `baseDir` from filename

When you were stripping the leading `baseDir` from filename you were saving in a variable that is no longer read, so the `baseDir` is ignored.