IDEA-124005 Reading resources out of a source directory doesn't make it a resource directory
(cherry picked from commit f447531)