check if file exists before copying in rake