Fixed automatic code searching and file reading.

The paths are always relative to the current directory. This means we can't change the directory until we are done with the files.