update non-bash env hooks to use runtime context (ros/catkin#490)