Change to program folder in init()

This allows the program to be run from other working directories, e.g. by adding it to $PATH.