Fixed directory create exec

fixes bug#1224536

Change-Id: I1071c4d3e203ae7fcfa3c1edceca3cbc4cfad059