Ignore phantom directories
Apparently, /config/deps/lib/python3.11/site-packages is also part of sys.path in production, although it doesn't exist. It breaks the variable site-packages. The solution is to ignore non-existent directories, so site-packages points to the correct one /usr/local/lib/python3.11/site-packages.