Emulate Perls internal handling of @INC