excluding directory from rpn