build: define filenameToIdentifier in terms of path.basename
Merge pull request #657 from davidchambers/build

build: define filenameToIdentifier in terms of path.basename