fix whatever rails runner for rails4, and fix sync_all! method