testing for /var/run/app_name directory instead of file existence in debian and rpm templates