Fix bug whereby using --force-host results in returning a null ReturnValue object.
Use File.createTempFile for scripts.