Added which check for system binary

Also added generic configuration for precompiled packaged binary.
Fixes #18.