emccalib: fix for bug 389 (not writing file)

thanks to jepler