test if package exists before building it