handle empty version strings better
use dev-master if version unavailable