WFLY-2624 - fixing add user script

Here is a link to the relevant JIRA: https://issues.jboss.org/browse/WFLY-2624