ensure resources at the root of the classpath get put in the right location

This patch ensure that resources located at the root of their directory are available on the classpath. E.g.

/src/test/resources/myfile.txt

where

resources = glob(['src/test/resources/**/*']),

Previously they were symlinked into a sub-directory that corresponded to the full path to the resource.