Fix an issue that script fails if logs and mobi directories not exist.
Add some logs to improve logging message.