setup.sh: check that temp file was created successfully, call rm command instead of potential alias (fix #343)