convert limit_posts value to Integer

otherwise --limit_posts N crashes on boot