allow passing of directory into list and install commands