added condition for puma config pidfile and state_path