Try using GNU versions of utilities on Solaris. Replace all occurrences to __rvm_<util>