Failure exit status; better test.
Won't fail on nested paths for LOG_DIRECTORY.
Quoted paths.