Fixes #18, also fixes bug where var sg was undefined using scalingGroup instead
Merge branch 'f18-dryrun-opt' into devel, fix for #18