Corrected process of getting username in nightly.rb