fixing to clean only the content of tmp dir. In case of a installation via YUM, JBoss wont recreate this synlink.
adapted to also work on OS X