fixed bug in checking wheter rosenv_use_hook exists.