Correctly handle trailing slashes when opening applications...