use the new search library functions instead of manual searches

the new chef search library is in barclamp-crowbar's utils cookbook
Merge pull request #176 from mapleoin/searchlib

use the new search library functions instead of manual searches
Move lock_path to /var/run

/var/lock is blacklisted on openSUSE
Merge pull request #177 from dirkmueller/lock_path_update

Lock path update