Fix handling of broken symlinks.
Less special handling for --prefix.

Mixing multiple -e and -p options will now heed the order the
options are specified, and -p can be given more than once.