Better message for permisson errors
Use registry class
Test cleanup
Remove tempoary file on teardown
Glob returns false if it finds no files