Adapted setup script to work properly with setuptools