improved tailing slash fix
improved tailing slash fix

there already was a function to handle the issue... let's just use it. ;-)

ioBroker/ioBroker.javascript,ioBroker/ioBroker.javascript,ioBroker/ioBroker.javascript