Fixed cd(0) not updating last path. Added error checking for the fork in ioacct. Updated comments.