fix pidfile discovery if . in path