Improve library grep. Add unmount trap for exit.