Fix bug #955 (spaces in mkdir cause failure)