Fix artifact output and root due IDEA-129315