Fix for misuse of rstrip in managing package dependencies