use ~ as cwd when launching apps