Fixed wrong variable name being used
Merge pull request #6726 from ServiceMesh/WFLY-3649

WFLY-3649: On Darwin domain.sh JBOSS_BASE_DIR isn't resolved properly