Handle build properly when -pre is not specified