io: add chdir

Adding the chdir function, that will change the current directory of any
running chapel program.