Exploit db

bugfix: db is in /var/ not /usr/share/
bugfix: path already contained in $target_dir

and a last one which simplifies/improves search (by forking less), it could be be done by one sed call, but I'm not even sure you're going to accept this one!

cheers