Added a check for package managers, and fixed a small bug in check_port_files