Execute chmod on an absolute path rather than *

If the previous "cd" command failed for the directory not existing (which it won't for most Mac users, because the /var/www directory does not exist by default) the chmod on * could operate on any directory.