Improved patch version detection
fixed errors in singularity login