Fix slug update when $build_from value don't chage

Fix the slug to change from "foo" for "foo-1" when updating with the same build_from value.