switch to using like() and is()
use tighter regexps to be sure of the daemon state
fix broken tests - piddir could be current directory