Expanded to cover heroku also

expanded plugin functionality to resolve issue identified in using YOURLs on heroku: https://github.com/YOURLS/YOURLS/issues/1345