Fix for Resources class to exclude paths with variables to allow mapping a class name to root