fix for misuse of rstrip in managing package dependencies