Fix issue #14: if file is forced, do no checks
Fix issue #15: bad filenames in subsearch
Fix issue #11: segfault on exit

Possibly a combination of dangling pointers after struct was alloced,
bad memory clearing at the end of the program and lookup thread not stopped.
Fix issue #12: subsearch broken

Possibly caused by bad copying of regex