Fixed file creation and delete source directories.