Fixes a few places where spaces in app path cause trouble.