fix dependency resolving in setup.py; move __version__ etc to separate file to prevent dependency import error