fix some pep8 warnings
handle multiarch folder layouts when determining the LD_PRELOAD value