to install archdir for keeping backward compatibility and supports arrayref and hashref args