Protecting against directories with spaces in update and install