check whether to launch as packaged app