[WFLY-1515] Cannot iterate recursively over deployed OSGi module resources

https://issues.jboss.org/browse/WFLY-1515

#### Depends on #4589