Added automatic creating of the run dir and changing it's permissions for the target user.