Better checks for programs
Replace hard coded paths to Makefile variables

@localstatedir@/lib/karoshi{-client,} -> @pkgstatedir@
@sysconfdir@/karoshi{-client,} -> @pkgconfdir@

@configdir@ is replaced with @pkgconfdir@
Fix inconsistencies in variable file paths
Replace more absolute paths with Makefile-configured ones