Broke functionality in to seperate functions

This should speed things up a bit as it now only opens settings one.  it
then only calles bundle, build, etc based on smarter criteria

Also fixes bug with scss loop