Fix bukkit detection

also mirrored maven.