Added -a (archive) option for cp commands to preserve permissions