Fix installer script changing into current directory

Fixes #440