Fix target directory calculation for libraries that have test sources in a subdirectory.  The compile actions were (incorrectly) being separated from the link and run actions in regex, spirit and others.

svn path=/trunk/tools/; revision=83612