Fix conditions

Signed-off-by: Michal Čihař <michal@cihar.com>
Create build directory before build

Signed-off-by: Michal Čihař <michal@cihar.com>