use path.relative instead of removeBase function