improved maven detection in archetype scripts