fix for #3064, context menu actions for packages

@ussuri
I think it should say "projectsDir", not "appDir", both for the variable and the function.