Fixed file opening functions to allow OS to handle working directory.
Fixed file opening functions to give control of working directory to operating system.