Fixed file name extension problem. Related to issue #125.