makedep: Add a helper function to open a file in the parent's source directory.