Check timeout if numeric, not int

Timeout values need not to be in full seconds, so the check was wrong