lib/BuilderHash: Add hash to hashCount return value.

Fixes bug where insertIfNotExisting would always try to insert
(and error out on uniqueness constraints).
lib/BuilderHash: Use `path.resolve` instead of `path.join`, to allow for absolute paths.