Fixes #4215 smart-proxy needlessly creates tmp/pids directory

(cherry picked from commit a25e7b9505dcfd32205d7ab451618347bb086515)