Extract common logic into utils.
update gitignore
add check nova-compute script