Handle directories passed on command line