Add execute permissions to sync and optimize

They lost execute permissions when I was trying to fix my permissions
issues (see earlier commit about removing umask).
Ignore .zwc files in optimize
Add dotprofile.common.after.local for machine-local configuration