Load debugger after rubygems.
Avoid using String#clear in File.expand_path. Fixes #2671.