Make sure the directory /etc/sysctl.d/ is created before copying files there.