Handle spaces in snapshot directory