$dirs must be quoted if you want to make it whitespace safe.