Added support for pandas installed directly from git trunk

pandas.version == commit_hash when pandas is installed from git trunk