io: add cwd

Adding the cwd function. This function returns the current working
directory of any running chapel program.