fixed a small bug in capturing version from filename