Improve reliability of "app in Dock" dep