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` config was not working.