fix again 8c35848c46e8a5ed3c3178f1cb77484cfd030f9d (version is never "SNAPSHOT", it ends "-SNAPSHOT")
use endswith for better readability
replace only the SNAPSHOT part