BUG fixed while restoring state build

The file ``tail.log'' exist on select `CT_LOG_TO_FILE' only.
Auto generate linaro version for pkgversion