fixed touch.c and mkdir.c for correctly handling non root dir paths