Fixed creating new branches.
Be sure the folder exists before trying to diff on it.