Disambiguiate targets and directories passed to 'build-project'.
Previously, if a Jamfile had:
exe a : a.cpp ; build-project a ;
where a is also a subdirectory, we'd get error.