changed how beginproblem() prints file path to use \path

Corresponding pull request for https://github.com/openwebwork/webwork2/pull/480.