improved wrapper bin path

The wrappers will now work either from the command line or
from an init.d script with $BIN defined.