fix: update shared flag when files are found