Test if /var/ramfs exists before copying data

Some workers (notably Docker images) may not have /var/ramfs