Improved otrs.SetPermissions.pl: better code style, avoid chdir() to every directory.