Changed creation of a temporary file

the code now checks before using a particular command (multiple
commands are supported) and will fall back to creating a simple file in
/tmp

fixes #96