Fix paths for chown. Add -H option in CMD.