https://github.com/dokku/dokku/pull/3843
This fixes when a user (or plugin) has replaced the cert with a symlink; else the symlinked file would be overwritten. This mainly is in the case of a global-cert (plugin) wildcard cert