Fixed access to repo packages files when there is an overlay

eg. files/ could still be used if it didn't exist in the overlay
Merge pull request #1392 from OCamlPro/overlay-fix

Fixed access to repo packages files when there is an overlay