fix for #3064, context menu actions for packages

@ussuri
Think projectDir would be more appropriate - looking for the container that has the pubspec. Need not be a project, but right now in CDE most of the time it is.