Warning fixes, add deleteDir()