Improved error message when directory can't be deleted