build: fix handling of string options