Guard for nil VariableScope. Fixes #3151.
Use exist? since exists? is deprecated.
Fixed sleep specs.
Updated gems_list.txt.