update gitignore
fix R CMD check error

resolved path variable name issue:

addOldPackage: no visible binding for global variable 'pth'