Work around virtualenv issues when $PWD includes spaces
Work around virtualenv issues when $PWD includes spaces

When running 'make virtualenv unittests' from a $PWD that includes
spaces, tests will fail to execute because bash is unable to understand
a script intepreter path that contains spaces.  To work around this
issue, if the intepreter specified by any virtualenv-provided scripts
includes a space, it is replaced by calling '/usr/bin/env $foo'.

For example ...
    #!"/this is a/path/with/spaces/bin/py.test

Would be replaced with...
    #!/usr/bin/env py.test

For more information, refer to
https://bugs.launchpad.net/virtualenv/+bug/241581.

Signed-off-by: Chris Lalancette <60b62644009db6b194cc0445b64e9b27bb26433a@redhat.com>

clalancette/oz,mgagne/oz,ndonegan/oz,ndonegan/oz,NeilBryant/oz,nullr0ute/oz,nullr0ute/oz,moofrank/oz,cernops/oz,moofrank/oz,mgagne/oz,imcleod/oz,clalancette/oz,NeilBryant/oz,cernops/oz,imcleod/oz