Fix #2816 renaming shared files

Fix for #2816 

@rperezb @icewind1991