update build to be able to handle snapshots/releases