Write report stats to student's home directory
Write report stats to student's home directory

This script is run via sudo, so we need to get the name of the logged in
user to derive the path for the output file. Otherwise, it just logs to
root's homedir and that's not terribly useful.

Fixes #COURSES-554

joshsamuelson/puppetlabs-training-bootstrap,petems/puppetlabs-training-bootstrap,johnduarte/puppetlabs-training-bootstrap,samuelson/education-builds,samuelson/education-builds,johnduarte/puppetlabs-training-bootstrap,wbhamilton/puppetlabs-training-bootstrap,klynton/puppetlabs-training-bootstrap,joshsamuelson/puppetlabs-training-bootstrap,klynton/puppetlabs-training-bootstrap,marrero984/education-builds,klynton/puppetlabs-training-bootstrap,kjhenner/puppetlabs-training-bootstrap,samuelson/puppetlabs-training-bootstrap,samuelson/puppetlabs-training-bootstrap,carthik/puppetlabs-training-bootstrap,marrero984/education-builds,marrero984/education-builds,samuelson/education-builds,joshsamuelson/puppetlabs-training-bootstrap,carthik/puppetlabs-training-bootstrap,puppetlabs/puppetlabs-training-bootstrap,kjhenner/puppetlabs-training-bootstrap,johnduarte/puppetlabs-training-bootstrap,puppetlabs/puppetlabs-training-bootstrap,samuelson/puppetlabs-training-bootstrap,kjhenner/puppetlabs-training-bootstrap,petems/puppetlabs-training-bootstrap,carthik/puppetlabs-training-bootstrap,wbhamilton/puppetlabs-training-bootstrap,puppetlabs/puppetlabs-training-bootstrap,petems/puppetlabs-training-bootstrap,wbhamilton/puppetlabs-training-bootstrap