ref #1181 Otherwise screen -x will not work without manually setting screen dir (cherry picked from commit 01f58adb)