FIX: binstub fails to execute on SmartOS.

Propably other Unices as well.

Tested on
* SmartOS
* Ubuntu 12.04
* Centos 6.5

DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
Merge pull request #6 from neuhalje/binstub_smartos

FIX: binstub fails to execute on SmartOS.