Update 'sleep' function for Unix