Fix reordering classpath in case of folder / artifact name mismatch