FIX: set cwd correctly for script