switch to building into a target dir