Fix backup saving for paths with spaces