add file logging for recovery install
fixed tmp file name
add crc check for wrapper script