Fixed some bugs, and made startup sequence for images derived from hdp_node more flexible