Added binary func to install script.

In order to make which platform agnostic.
Fixed ubuntu detection in install script.