The attached patch resolves this. There's also a slight tweak to the text of the menu entry for "Compile" to make it clearer that "compile" runs in CWD, where as "project-compile" runs on the current project. Otherwise I think it would be slightly confusing.