Fix clean command for setup.py
fixes #2908
Added test for github issue #2908
Merge pull request #2910 from skirpichev/misc

Misc fixes