Fix installing from a file

Fixes #610.