fixed chmod for binary link throwing exception for environments where unixy proxy code is generated. see issue #1270