Set correct mode for binaries