Store a hashed file path and use it for the unique check
Fix up failing test
Do the lookup on the hashed file path, not the actual one - GOD DOES THIS NEED TESTS
merge master