directory parsing fix (when mulitple linux paths are specified)