Strip -dirty from documentation version so it doesn't show up in RTD - fixes 544

Fixes #544.