With a well-worked plot and credible, sympathetic characters, this is an enjoyable slice of Tartan Noir, writes Allan Massie ...