Removed system() call and implemented <unistd.h> to create new folders