fix directory layout for gradle.