Fix bug in source file test.

When looking for a source file, it was assumed that the current working
directory did not contain the character '.'. If the working directory did
contain a '.', this test would fail.