added filesystem check; pkgm is now working