Fix: $prefix/var not created during 'make install', fails on cmd pipe creation

Fixes #3815