added searchtype to settings.ini

Also made code more crossplatform friendly.