Adapts allocate_DIR() function and implements clone() system call. New a...

...llocate_DIR() does not work yet.