Fixes in file names for impute2 commands. Write output to stdout as well as log file