a fix for custom pidfiles