fix creating missing /etc directories

forgot to put /etc in front of $f