Add forcedel

If the install fails (or partly succeeds), passing the "forcedel" arguments undoes any changes, so the script can start over cleanly.

Also misc fixes: better dash compatibility, put the variables at top for clarity, and an extra variable.

Closes #3