Update autoshard configuration so it handles groovy and java sources better