Update imager.sh/Cleanup Files

We now change the app config location using sed, instead of having
another file.

We also cleaned up the if statement in imager for whitelisting.