convert an environment var controlling the sleep to an integer