Handle target file format in different OS in Migration console