Maint: Reject symbols on ruby 1.8

Previously, the timeout parameter did not reject symbols when run on
ruby 1.8, because on that version `Integer(:foo)` does not raise, where
as it does raise in ruby 1.9.

This commit uses a regex to make the validation more restrictive.