chdir to directory with script to load plugins correctly