fix handling of --post_category parameter; closes #986