Add testcase for <ant>'s logfile placement, fix NPE in <ant>. If <ant> should ignore the dir attribute, we only have to change the locations of test3.log and test4.log.