add the useage information
fix a bug while $DIR is empty