We need to check for dangling symlinks or else this fails on precise
No need to sudo since we're already running as root
Chroot needs proc/sys/dev mounted in order to function properly
Volume states sometimes do not go to in-use, rather directly to attached.
Check for stopping state as well as stopped. We've already umounted the  and  so this saves us a bit of build time.
Bumping version
Fixing ubuntu typo
Add STDOUT.sync=true so we can get output if builds with jenkins and such
Merge pull request #10 from joshuatobin/precise-updates

Update for precise builds
Don't expand shell variable in the custom_user_script

Based on @bookest's
https://github.com/kickstarter/build-ubuntu-ami/pull/11