func ChmodExecutableDirectory(path string) error {
	if err := os.Chmod(path, constant.DefaultDirMode); err != nil {
		return errors.Wrap(err, "chmod executable directory")
	}
	return nil
}
ChmodExecutableDirectory sets the appropriate permissions on an executable
file. On POSIX this is a normal chmod call.
package platform
import (
	"os"
	"github.com/fleetdm/orbit/pkg/constant"
	"github.com/pkg/errors"
)