The depot tool did not consistently distinct libraries from regular targets when handling binary archives. The binary archive of a regular target is located at <user>/<bin>/<arch>/<name> whereas a library is located at <user>/<bin>/<arch>/<api>/<name>. Fixes #2438