chown can only be run as root

The logic here was flawed -- my caskroom.parent was writeable, but chown
was called regardless, causing an error.
Merge pull request #2360 from jfb/master

chown can only be run as root