nix-store -q: Check for conflicting flags

Fixes #364.