adding in a call to fs.exists before copying/linking files