Build: fix duplicate references to files in build phase