Updated handling for the Build, Rebuild, and Clean commands

* Fixes #62 
* Also updates state of corresponding entries in the **Build** menu