removed some dead code
changed order of path construction such that the project goes before the
library, for the cases where we are editing the library as a project
itself.