Updated the version alignment script to improve functionality and error handling. Signed-off-by: Jonathan Miller <jmiller2979@gmail.com>