separate --with-opt-dir= handling for rbx
Merge pull request #1782 from wayneeseguin/bugfix/rbx-head

separate --with-opt-dir= handling for rbx