Used each_slice to compile ruby files in chunks of 5000 to fix #269