fix long opts for getop() based on RHS_INSTALL flag