Modified uigetdir2 so that it could take an optional third argument specifying what has been selected.