Maybe is better to fix the default assignment to the value of JBOSS_CONF (some lines before).
I think it doens't help to use a variable called JBOSS_CONF to refer to the directory