fixed the lock on directory watcher
add tests
test class for tgz decompresion