Avoid problems when log directory or pifile not present