python: sitecustomize checks path before remove

This fixes issues when calling python scripts print `'import sitecustomize' failed; use -v for traceback`

Closes #18338.

Signed-off-by: Samuel John <github@SamuelJohn.de>