Autodetect opening books