Make file existence tests more strict
Move name check to own function
Add unit tests for build checks
Update README