I have created a script that handles most things that need to be configured in order to setup the sage theme and deploy to staging and/or production server.
The issue you mentioned above is taken care of by the script. It runs the solution I mentioned above automatically.