Fixed the removal of test and run directories.