changed regex to correctly parse GAV both from gavPath example/example/1.0.0 and from example/example/1.0.0/ (slash at the end)