Fixed directory create exec

fixes bug#1224536

Change-Id: I1071c4d3e203ae7fcfa3c1edceca3cbc4cfad059
(cherry picked from commit b4f38271a3af9e25a74a05561c27c7a47df91d51)