Fix up resource paths, dependencies target injection
Fix sources globs in scala test