Exec refactoring

Remember to merge https://github.com/appium/appium/pull/4103 after this.
yeah this always bugs me about exec. we could have a constant we import all across appium, or better yet make this an independent module and just use it everywhere so we don't need to replicate this opt.