prevent error for "rm" when folder is empty

This fixes the issue with the directory being empty by creating a temporary file there.  Another alternative would be to use the -f option for "rm" (I think).