Fixed mistake rmdir for rm in logging section.
Fixed package manager name, and added quotes to conditional install.
Added removal of top level log files for logging.