Fix automatic flags during installation.