fixed clearing of source dir when it doesn't exist