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.