Change student log to be relative to class location

Using dirname should work regardless of the location of the script which
includes the class file.