Before changing directories from list of strings to list of KeyValue pairs