Move version into separate file. Fix .prof detection.