Fix linking error when .app filenames have spaces