Fix for extensions being stripped off by mistake made when adding in -RP fix from few commits ago.