slightly change when search paths to the tmp folder are added, otherwise it always fails on the first time starting an app