seems there is no "-a" parameter to "cp" in non-gnu "cp". Use "-p" instead.