sdktool: Check for return value of mkpath

Change-Id: I946e2d5195ea0f9813fe7ebaa7dc2434579abbe5
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>