Bug 1173180 - Check for frontend directory existence before calling rm_r

There could still be a race here if the directory disappears after the check but before the delete. I think we could add a begin rescue block around the call and log any exceptions.