Fix for printing from file. Path was not set right