Fixed: Extension is added according file type

Fixed: In Qt5/Linux file's extenasion was not added. Issue #20