fix build directory checks in autotests

Those were broken by 1074c99e.

Change-Id: Ia2b847d938985f21c8f60bb50fd3f91ffdf02b7b
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>