Fix handling of the --local switch. Fixes #259.

--local was erroneously doing the same as --system.