Strip each entry of basedirlist