changed a line to join a filename using os.join