Change auto-build state while build, other minor changes

Signed-off-by: Kirill Zotkin <kirillzotkin@gmail.com>