Fix resource loading from classpath and improve archetype