one more folder check for shared_sources

one more case to fetch shared sources: when the sample was in a
sub-folder