baseNameOf: Don't copy paths to the store first