discourse-setup is meant to deal with issue like this these days.
Not sure if this is an issue anymore @pfaffman …