Implement flexible target specification

See commit message.
Is `parse_bool` also backwards, then?