Improve getNixRevision, stub for nix-expression builder