Fix executable bit check to work on Mac OS X.

### Motivation:
`find -executable` doesn't work on Mac OS X. See #671.

### Changelog:
* Patch command to work under Mac OS X. FIx #671.
* Ignore results from `virtualenv` folder.