Use program directory as current directory

And do that as soon as we can.
Fixes #3495