Revert "main: Remove sys.path modification"

This reverts commit c00a49ebe1ac1d1e26b7f6ab855eabf27163acde.