Remove use of assignment in "local" command

This behaves weirdly and is not portable.
Report proper error message for nonexistent package