Fixed detection of Maven artifacts