Since this is a in container test, the test case could instead just use the "jboss.server.base.dir" system property value instead of doing all these checks. 

I won't hold up the merging for this one though.