Sets up sane defaults and checks for directories before calling rm