add target framework dir to ILMerge

fixes #1693

also fixes an issue people would have when building in release mode from
a directory with spaces.