fixing package path detection

I swear, this worked before!