Move the test result.cmd_line? to the if statement of smart-incapable devices
Removed tilde temporary files