adding plugins dir and merges and platform dirs