Bash script for preserving sytem wide file permissions