Make boot-stack element more friendly to other distros.

Check if it's an upstart-based distro before doing upstart-specific tasks.

Change-Id: I5ce8589dc5adfb0ea74bf4b573a964d286414644
Merge "Make boot-stack element more friendly to other distros."